.class Lcom/TwinBlade/PicturePassword/bc;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/ba;

.field private final synthetic b:Landroid/content/SharedPreferences;


# direct methods
.method constructor <init>(Lcom/TwinBlade/PicturePassword/ba;Landroid/content/SharedPreferences;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    iput-object p2, p0, Lcom/TwinBlade/PicturePassword/bc;->b:Landroid/content/SharedPreferences;

    .line 146
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter

    .prologue
    .line 149
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/ba;->a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;

    move-result-object v0

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/ba;->a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;

    move-result-object v1

    iget-object v1, v1, Lcom/TwinBlade/PicturePassword/PayPalKey;->a:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;Ljava/lang/String;)Z

    move-result v1

    .line 150
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/ba;->a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;

    move-result-object v0

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v2

    if-eqz v1, :cond_1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/ba;->a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;

    move-result-object v0

    const v3, 0x7f0900a6

    invoke-virtual {v0, v3}, Lcom/TwinBlade/PicturePassword/PayPalKey;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_0
    const/4 v3, 0x1

    invoke-static {v2, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 151
    if-eqz v1, :cond_0

    .line 152
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bc;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "PayPalKey"

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/ba;->a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;

    move-result-object v2

    iget-object v2, v2, Lcom/TwinBlade/PicturePassword/PayPalKey;->a:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 154
    :cond_0
    return-void

    .line 150
    :cond_1
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bc;->a:Lcom/TwinBlade/PicturePassword/ba;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/ba;->a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;

    move-result-object v0

    const v3, 0x7f0900a7

    invoke-virtual {v0, v3}, Lcom/TwinBlade/PicturePassword/PayPalKey;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
